<div class="content_wrapper">
    <legend>Danh sách thương hiệu sản phẩm</legend>
    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered table-condensed" id="example" width="100%">
        <thead>
            <tr>
                <th width="25" style="text-align: center;">ID</th>
                <th>Tên danh mục</th>
                <th width="40" style="text-align: center;">Active</th>
                <th width="60">Tùy chọn</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($result as $key => $value) :?>
             <tr>
                <td style="text-align: center;"><?php echo $value['manufacture_id'];?></td>
                <td><?php echo $value['title'];?></td>
                <td style="text-align: center;"><i _id_key="manufacture_id" _id_value="<?php echo $value['manufacture_id'];?>" _field_key="active_flag" _field_value="<?php echo $value['active_flag'];?>" _table="<?php echo TBL_MANUFACTURER;?>" _icon_active="icon-ok" _icon_unactive="icon-ban-circle" class="btn_active <?php echo ($value['active_flag'] == 1) ? 'icon-ok' : 'icon-ban-circle'; ?>"></i></td>
                <td style="text-align: center;">
                    <a href="<?php echo base_url('admin/manufacturer/edit/'.$value['manufacture_id']);?>"><i class="icon-edit"></i></a>
                    <a href="<?php echo base_url('admin/manufacturer/delete/'.$value['manufacture_id']);?>" onclick="return confirm('Bạn có chắc chắn muốn xóa thương hiệu này không ?');"><i class="icon-remove"></i></a>
                </td>
            </tr>
            <?php endforeach;?>
        </tbody>
    </table>
</div>